package lab01;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Excise03 {
    public static void main(String[] args) {
        Calendar date = Calendar.getInstance();
        System.out.println(date.getTime());

        Date now= new Date();
        System.out.println(now);

        SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd");
        System.out.println(f.format(now));
        SimpleDateFormat b = new SimpleDateFormat("yyyy年MM月dd日");
        System.out.println(b.format(now));
        //Thu Feb 23 22:41:17 CST 2023
        //Thu Feb 23 22:41:17 CST 2023
        //2023-02-23
        //2023年02月23日
    }
}
